package org.example.responsibilitychain;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public abstract class Approver {
    Approver approver;
    String name;

    public Approver(String name) {
        this.name = name;
    }


    public abstract void processRequest(PurchaseRequest purchaseRequest);

    public Approver getApprover() {
        return approver;
    }

    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
